# syntax=docker/dockerfile:1

FROM python:3.10
LABEL author="LangJin"
LABEL email="fenyukuang@163.com"
WORKDIR /home/app
ENV TIME_ZONE Asia/Shanghai
RUN rm -f /etc/localtime
RUN ln -snf /usr/share/zoneinfo/$TIME_ZONE /etc/localtime && echo $TIME_ZONE > /etc/timezone
COPY requirements/pro.txt requirements.txt
RUN pip3 install -r requirements.txt -i https://pypi.tuna.tsinghua.edu.cn/simple

EXPOSE 3456

CMD [ "gunicorn", "main:app" , "-c", "gunicornConfig.py"]
